package com.sunu.dao;

import com.sunu.entity.worker.Worker;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by i on 2019/9/20.
 */
public interface WorkerDao {
    List<Worker> queryAll();

    Worker selectByName(String workerName);

    Worker selectById(int workerId);

    void deleteById(int workerId);

    void insertWorker(Worker worker);

}
